package annotation;

import 枚举类.TrafficLight;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
public @interface MyAnnotation {
    String color() default "blue";
    TrafficLight trafficLight() default TrafficLight.GREEN;
    MetaAnnotation metaAnnotation();
}
